<style>
  html>body thead.datagrid th{
    width: 150px;
  }
  html>body thead.datagrid th+th{
    width: 50px;
  }
  html>body tbody.datagrid td+td{
    text-align: right;
  }
</style>
<div class="module_title">
  Terms
</div>
<div id="divInvoiceTermsForm">
  <?php include_partial('form_entry',array('listInvoiceTermsForm'=>$listInvoiceTermsForm,))?>
</div>
<br/>
<table class="datagrid">
  <thead class="datagrid">
    <tr>
      <th>
        Term
      </th>
      <th>
        Days
      </th>
    </tr>
  </thead>
  <tbody class="datagrid" style="height:200px">
    <?php foreach($listInvoiceTermss as $listInvoiceTerms):?>
      <tr>
        <td>
          <?php 
            echo 
              link_to(
                $listInvoiceTerms->getTerm(),
                'invoice_terms/edit?iden='.$listInvoiceTerms->getIden()
              );
          ?>
        </th>
        <td>
          <?php echo number_format($listInvoiceTerms->getDays())?>
        </td>
      </tr>
    <?php endforeach;?>
  </tbody>
</table>